<?php
function db_template_mail_contact($params)
{
	$template = '
		<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
		<html>
		<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>Liên hệ</title>
		</head>
		<style>
			table
			{
				margin-left:30px;
				font-family:arial;
				font-size:14px;
			}
			.first
			{
				width:80px;
				font-weight:bold;
			}
			.second
			{
				font-style:italic;
			}			
		</style>
		<body style="width:500px;">
			Chào <h3>'.$params['fullname'].'</h3>
			<p>'.$params['welcom'].'</p>
			<p >Liên hệ tại <a href="'.$params['link'].'">'.$params['domain'].'</a></p>
			<p >Thông tin liên hệ:</p>
			<table>
				<tr>
					<td style="width:100px"> Họ Tên:</td>
					<td > '.$params['fullname'].'</td>
				</tr>
				<tr>
					<td style="width:100px"> Công ty:</td>
					<td > '.$params['company'].'</td>
				</tr>
				<tr>
					<td style="width:100px"> Địa chỉ:</td>
					<td > '.$params['diachi'].'</td>
				</tr>				
				<tr>
					<td style="width:100px"> Điện Thoại:</td>
					<td > '.$params['dienthoai'].'</td>
				</tr>
				<tr>
					<td style="width:100px"> Email:</td>
					<td > '.$params['email'].'</td>
				</tr>
				<tr>
					<td style="width:100px"> Nội Dung:</td>
					<td >
						'.$params['noidung'].' 
					</td>
				</tr>
			</table>
			
			<hr>
			<table>
				<tr>
					<td class="first"> Send by:</td>
					<td class="second"> '.$params['sendby'].'</td>
				</tr>
				<tr>
					<td class="first"> Address:</td>
					<td class="second"> '.$params['sendaddress'].'</td>
				</tr>
				<tr>
					<td class="first"> Tel:</td>
					<td class="second"> '.$params['sendtel'].'</td>
				</tr>
				<tr>
					<td class="first"> Email:</td>
					<td class="second"> '.$params['sendemail'].'</td>
				</tr>
			</table>
			
		</body>
		</html>
	';
	return $template;
} 